package com.example.api;

import org.apache.log4j.BasicConfigurator;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@MapperScan("com.example.service.dao")
@ComponentScan("com.example")
@SpringBootApplication
public class ApiApplication {

	public static void main(String[] args) {
		BasicConfigurator.configure(); //自动快速地使用缺省Log4j环境。
		SpringApplication.run(ApiApplication.class, args);
	}

}
